package com.atstudy.state;

/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2022/12/23 15:23
 * @copyright: 博为峰
 */
public class JoinDemo extends Thread {
    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            Thread.yield();
            System.out.println(Thread.currentThread().getName() + "," + i);
        }
    }
}
